public class Test {
    public static int fib(int n){//斐波那契数列
        int a = 1;
        int b=1;
        int c=1;
        for(int i = 0;i<n-2;i++){
            c=a+b;
            a=b;
            b=c;
        }
        return c;
    }
    public static int add(int a ,int b){
        return a+b;
    }
    public static double add(int a,int b,int c){
        return a+b+c;
    }
    public static int add(double a,int c){
        return (int)a+c;
    }
    public static void main(String[] args) {
        System.out.println(fib(1));
        System.out.println(fib(2));
        System.out.println(fib(3));
        System.out.println(fib(4));
        System.out.println(fib(5));

    }
}
